home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / GAMES / MONOPOLY.ARC / !DataSuite / Docs / DtPlayHelp < prev    next >
Text File  |  1994-05-14  |  6KB  |  97 lines

  1.  
  2.  DataPlay Help File.
  3.  ===================
  4.  
  5.  NB If you are using this module under Risc OS kernel version 2.00 then you
  6.     must have IRQutils module v0.9 or greater loaded! This is because
  7.     DataPlay makes heavy usage of transient call backs and the 2.00 kernel
  8.     routines have an error in them that IRQutils fixes. Failure to load
  9.     this module can result in address exceptions and your machine crashing!
  10.  
  11.    This module provides a means to have 'temporary' sounds that get played
  12. once and then removed from memory. A typical application envisaged for this
  13. would be a sound at startup of the machine. This module will remove the sample from memory when it is done playing. It relies on DataVox and DataLoad to function, complaining if they are not available...
  14.  
  15.    One OSCLI command is provided. The syntax is :-
  16.  
  17. DataPlay_PlayFile <file> [-rmagrab <#Kb's to grab>] [-normashrink]
  18.  
  19. Where the file is *actually* a file and -rmagrab is totally optional. -rmagrab
  20. claims a block of RMA *before* it tries to load the sample using DataLoad. Once
  21. the sample is successfully loaded and play started it frees the block releasing
  22. it back to the RMA. -normashrink stops DataPlay from minimising the RMA after playing the sample. This is occasionally useful.
  23.  
  24.    Why do this? Well if DataPlay is near the begining of your boot sequence
  25. it is highly likely you will be loading modules, sprites and other bits and
  26. peices into the RMA. If there is insufficient free space available in the
  27. RMA to satisfy these requests then the memory that the sample occupies will
  28. be trapped in the middle of the RMA effectively useless to you. And given
  29. that sound samples can easily occupy several hundred kilobytes this is not
  30. desirable. By claiming an unused block first DataSuite will attempt to
  31. ensure that enough free memory is available *below* the block claimed for
  32. the sample to prevent blocks being allocated above it.
  33.  
  34.    Obviously DataPlay has no idea what else you are loading so you must
  35. tell it how much to claim. Of course if you are one of those smarmy bastards
  36. who has 16 Megs you may not care much if a few hundred Kb gets trapped, so
  37. this parameter is totally optional. When the sample has finished DataPlay
  38. attempts to return as much of the RMA memory back to the application free
  39. pool, just to be tidy.
  40.  
  41.    DataPlay ensures sufficient channels are active etc and assigns the channels
  42. correctly as it needs to. It handles stereo files as well automatically
  43. claiming the needed resources and setting up the stereo assignments. All
  44. channels are returned to their previous voice generator when play stops. (So
  45. channel one will be returned back to wavesynth beep usually.)
  46.  
  47.    And that about covers it. Simple eh?
  48.  
  49. Error Messages.
  50. ---------------
  51.  
  52.    The Error range begins at &807100 and ends at &807108.
  53.  
  54.    Error # | Error Message
  55.    --------+--------------------------------------------------------------
  56.       0    | Insufficient RMA Space to Initialise!"
  57.       1    | DataVox is not loaded in memory. I cannot initialise!
  58.       2    | The version of DataVox in memory is too old. I require v3.66
  59.            |   or better to function.
  60.       3    | DataLoad is not loaded in memory. I cannot initialise!
  61.       4    | The version of DataLoad in memory is too old. I require v2.29
  62.            |   or better to function.
  63.       5    | I cannot play another file currently.
  64.       6    | No file to play has been specified.
  65.       7    | No sound play channels are currently available - unable to
  66.            |   play the file.
  67.       8    | Insufficient sound play channels are currently available -
  68.            |   unable to play the file. 
  69.  
  70.   Version History
  71.   =========================================================================
  72.   |Version | Comments.                                                    |
  73.   =========================================================================
  74.   | 0.01   | Created DataStart. First functional version (12-Sep-1992)    |
  75.   | 0.02   | Added the -rmagrab option to increase the functionality of   |
  76.   |        |   module and to lower it's effects on trapping memory in the |
  77.   |        |   RMA . (13-Sep-1992)                                        |
  78.   | 0.03   | Added stereo sample support. (26-Sep-1992)                   |
  79.   | 0.04   | Set the Error chunk number to that allocated by Acorn.       |
  80.   |        |   (03-Oct-1992)                                              |
  81.   | 0.05   | The code now monitors the samples addresses and if the same  |
  82.   |        |   address reccurs five times in a row then the sample will   |
  83.   |        |   be shut down. This should cope with escape halting sound   |
  84.   |        |   synthesis. (06-Nov-1992)                                   |
  85.   | 0.06   | Name change to DataPlay to better reflect it's functionality |
  86.   |        |   & purpose. (23-Dec-1992)                                   |
  87.   | 0.07   | Dataplay now allows itself to be killed mid play.            |
  88.   |        |   (2-Aug-1992)                                               |
  89.   | 1.00   | Functionality vastly improved. Now DataPlay remains memory   |
  90.   |        |   resident, provides an OSCLI command to play files and      |
  91.   |        |   handle up to eight files imultaneously. Dynamic channel    |
  92.   |        |   handling added and the code size reduced to boot.          |
  93.   |        |   (21-Jan-1994)                                              |
  94.   | 1.01   | Added the -noramshrink flag. (27-Jan-1994)                   |
  95.   | 1.02   | Adjusted the timer routine to cope correctly with very short |
  96.   |        |   samples. (15-May-1994)                                     |
  97.   =========================================================================